package com.hsw.habit.frame.utils;

import com.hsw.habit.common.CurrentUserConstants;

import javax.servlet.http.HttpServletRequest;

public class ToolUtils {
    public static int getUserId(HttpServletRequest request) {
        return (int) request.getAttribute(CurrentUserConstants.CURRENT_USER_ID);
    }
}
